import { Schema, Prop, SchemaFactory } from '@nestjs/mongoose';
import { Document, Types } from 'mongoose';

export type VarTestChildDocument = VarTestChild & Document;

@Schema({
  timestamps: {
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
})
export class VarTestChild extends Document {
  // 字符串变量
  @Prop({ required: true, type: String })
  varChildString: string;
}

export const VarTestChildSchema = SchemaFactory.createForClass(VarTestChild);
